from datetime import datetime
from faker import Faker

fake = Faker(locale='zh_CN')
global_vars = globals()


def random_sequence():
    old_seq = str(fake.uuid4())
    new_seq = old_seq.replace('-', '')
    return new_seq


# 随机身份证
idcard = fake.ssn()
# 当前时间戳，精确到毫秒
timestamp = datetime.now().strftime('%F %T.%f')[:-3]
# 随机接口名
api_name = '测试测试' + '(' + timestamp + ')'
# uuid
uuid = fake.uuid4()
# uuid不带-
sequence = random_sequence()

if __name__ == '__main__':
    print(global_vars)
